

<?php if(Yii::app()->user->hasFlash('notify')): ?>

<div class="notifyBox">
	<h3 style="margin: 13px 0pt;"><?php echo Yii::app()->user->getFlash('notify'); ?></h3>
</div>

<?php endif; ?>

<?php $this->widget('SettingsMenu'); ?>

<div class="span-26">
	<h2>Company Profile</h2>
	This information is used for invoicing, emails, and more. Make sure it's correct!
</div>

<div class="clearb"></div>

<div class="rule_5 bg_grey90"></div>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'organization-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="span-7 append-1 ta_right bold"><?php echo $form->labelEx($model,'name'); ?></div>
	<div class="span-26 append-bottom-1">
	<?php echo $form->textField($model,'name',array('size'=>50,'maxlength'=>50)); ?>
	<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="span-7 append-1 ta_right bold"><?php echo $form->labelEx($model,'address'); ?></div>
		
	<div class="span-26 append-bottom-1">
		
		<div class="append-bottom-1">
			<?php echo $form->textField($model,'address',array('size'=>50,'maxlength'=>50)); ?>
			<br />
			<div class="example">Street 1</div>
			<?php echo $form->error($model,'address'); ?>
		</div>
	
		<div class="append-bottom-1">
			<?php echo $form->textField($model,'address2',array('size'=>50,'maxlength'=>50)); ?>
			<br />
			<div class="example">Street 2</div>
			<?php echo $form->error($model,'address2'); ?>
		</div>

		<div class="span-7">
			<?php echo $form->textField($model,'city',array('size'=>15,'maxlength'=>50)); ?>
			<?php echo $form->error($model,'city'); ?>
			<br />
			<div class="example">City</div>
		</div>
	
		<?php $stateArray = CHtml::listData(State::model()->findAll(),'id','name_long'); ?>
	
		<div class="span-8">
			<?php echo $form->DropDownList($model,'state_id',$stateArray); ?>
			<?php echo $form->error($model,'state_id'); ?>
			<br />
			<div class="example">State</div>
		</div>
	
		<div class="span-7">
			<?php echo $form->textField($model,'zip',array('size'=>10,'maxlength'=>10)); ?>
			<?php echo $form->error($model,'zip'); ?>
			<br />
			<div class="example">Zip Code</div>
		</div>

	</div>
	
	<div class="span-7 append-1 ta_right bold"><?php echo $form->labelEx($model,'phone'); ?></div>
	<div class="span-26 append-bottom-1">
		<?php echo $form->textField($model,'phone',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'phone'); ?>
	</div>

	<div class="span-7 append-1 ta_right bold"><?php echo $form->labelEx($model,'email'); ?></div>
	<div class="span-26 append-bottom-1">
		<?php echo $form->textField($model,'email',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="edit-end"></div>

	<div style="text-align:center;">
		<?php echo CHtml::imageButton("/cloverdale/images/buttons/save.gif"); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->